home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 October / CHIP Turkiye Ekim 2000.iso / prog / naps / 16 / FAQ < prev    next >
Encoding:
Text File  |  2000-05-31  |  2.5 KB  |  58 lines

  1. Frequently Asked Questions (FAQ) about opennap
  2. ==============================================
  3. Last updated on May 30, 2000.
  4.  
  5. Q:  What is opennap?
  6. A:  opennap is an open source server which speaks the napster protocol
  7.  
  8. Q:  What is napster?
  9. A:  See www.napster.com for information.
  10.  
  11. Q:  Is this project associated with napster.com?
  12. A:  No, this server was developed without any communication with napster.com
  13.  
  14. Q:  Why can't I connect to the Napster.com servers?
  15. A:  We are not affiliated with Napster, Inc.  You should contact them for
  16.     assistance.
  17.  
  18. Q:  What language is opennap written in?
  19. A:  ANSI C.
  20.  
  21. Q:  How do I get more than 256 connections?
  22. A:  On some systems without a poll() function, the maximum number of file
  23.     descriptors that a process can have is controlled by the FD_SETSIZE
  24.     macro.  If you only have select(), try rerunning configure with the
  25.     --fd-setsize=1024 option to specify a higher value.
  26.  
  27. Q:  How do I get more than 1024 connections under Linux?
  28. A:  You can set the per-process file descriptor limit dynamically by piping
  29.     an integer to /proc/sys/fs/file-max
  30.     (eg.  echo 8192 > /proc/sys/fs/file-max).  The default value seems to
  31.     4096 which should be good enough.
  32.  
  33.     In order to utilize more than 1024 file descriptors, you must run
  34.     opennap as root.  Set your `connection_hard_limit' variable to something
  35.     higher than 1024 and you should be set.
  36.  
  37. Q:  Isn't running opennap as root a security risk?
  38. A:  Running anything as root can potentially be a security risk.  Opennap
  39.     attempts to reduce the risk by allowing you to specify the default
  40.     uid/gid to run as.  After setting the max file descriptors, opennap
  41.     calls setuid() and setgid() to drop root privilege (by default it uses
  42.     user nobody, group nobody).
  43.  
  44. Q:  Why do I get disconnected when I browse a user with many shared files?
  45. A:  By default, OpenNap will only queue up to 100kbytes of data for a user
  46.     to prevent a huge backlog of data for a dead/slow client.  A user with
  47.     1000 shared files will often create more than 100kbytes of output, which
  48.     triggers the dead client detection to prevent using too much resources.
  49.  
  50. Q:  How do I fix it?
  51. A:  If you have memory to spare, you can increase the value of
  52.     client_queue_length, or alternatively decrease the number of files
  53.     returned by a browse command (max_browse_result) so that it does not cross
  54.     the 100kbytes default limit.
  55.  
  56. Q:  How do I get my server listed on napigator.com?
  57. A:  Go to www.napigator.com and look for the section on adding servers.
  58.